<!--
	作者：495246490@qq.com
	时间：2016-04-25
	描述：参数文案列表
-->
<h3>内容管理
    <small>删除管理</small>
</h3>
<div class="btn-group">
    <button class="btn btn-primary big-big-font" ui-sref="cms.reallyDeleteArticle">文章</button>
    <button class="btn btn-default big-big-font" ui-sref="cms.reallyDeleteTopic">问答</button>
    <button class="btn btn-default big-big-font" ui-sref="cms.reallyDeleteContest">擂台</button>
</div>
<div  ng-controller="reallyDeleteArticleCtrl" class="panel panel-default">
    <div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
        <table class="table table-striped table-condensed">
            <thead>
            <tr>
                <th>编号</th>
                <th>标题</th>
                <th>作者</th>
                <th>是否平台用户</th>
                <th>发布时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <!-- repeat begin -->
            <tr ng-repeat=" articleItem in articleList ">
                <td>{{articleItem.articleId}}</td>
                <td style="cursor: pointer" tooltip="{{articleItem.title}}" tooltip-trigger="mouseenter">{{articleItem.title.length>10?articleItem.title.slice(0,9)+'...':articleItem.title}}</td>
                <td>{{articleItem.authorName}}</td>
                <td>{{articleItem.isPlatform |isPlatform}}</td>
                <td>{{articleItem.postedTime}}</td>
                <td>
                    <a tooltip="预览" tooltip-trigger="mouseenter" class="btn btn-xs btn-primary" ng-click="articlePreview(articleItem)"><i class="fa fa-eye"></i></a>
                    <a tooltip="恢复" tooltip-trigger="mouseenter" class="btn btn-xs btn-success" ng-click="renew(articleItem.articleId)">恢复</a>
                </td>
            </tr>
            <!-- repeat end -->
            </tbody>
        </table>
        <p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
        <pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize" num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
        </pagination>
        <!-- 手机-->
        <div class="preview-layer">
            <div class="preview-bg"></div>
            <div style="top:0" class="preview-phone">
                <iframe id="preview-html" name="preview-html" src="app/views/article/preview-h5.html"></iframe>
            </div>
        </div>
    </div>
</div>